Release 10.1A: OpenEdge Data Management:
SQL Reference


MAX

Returns the maximum value in a group of values.

Syntax

COUNT ( { [ ALL ] expression } | { DISTINCT column_ref } | * ) 

Example

This example illustrates the MAX function:

SELECT order_date, product, MAX (qty)
     FROM orders
     GROUP BY order_date, product ; 

Notes


Copyright © 2005 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095